{weiget frontend_weiget/header}

	 <section>
         <!-- Page content-->
         <div class="content-wrapper">
            <h3>添加<a href="{SELF_URL}operation/list/?id={$prototypeid}"><!--{$prototypeInfo[title]}--></a>
               <small><!--{$prototypeInfo[desc]}--></small>
            </h3>
            <!-- START panel-->
            <div class="panel panel-default">
               <div class="panel-body">
                  <form method="post" action="{SELF_URL}operation/add/?id={$prototypeid}" class="form-horizontal">
					 <!--{loop $fields $field}-->
					 <!--{if $field[bindingid]}-->
                     <fieldset>
                        <div class="form-group">
                           <label class="col-sm-2 control-label"><!--{$field[title]}--></label>
                           <div class="col-sm-6">
                              <select name="operation[{$field[name]}]" class="chosen-select form-control">
                                 <option value="0">无</option>
							  <!--{loop $bindingArray[$field[name]] $binding}-->
                                 <option value="{$binding[id]}"><!--{$binding[title]}--></option>
							  <!--{/loop}-->
                              </select>
                           </div>
                           <div class="col-sm-4"></div>
                        </div>
                     </fieldset>
					 <!--{else}-->
                     <fieldset>
                        <div class="form-group">
                           <label class="col-sm-2 control-label"><!--{$field[title]}--></label>
                           <div class="col-sm-6">
                              <input type="text" placeholder="{$field[note]}" name="operation[{$field[name]}]" class="form-control" data-parsley-minlength="4">
                           </div>
                           <div class="col-sm-4"></div>
                        </div>
                     </fieldset>
					 <!--{/if}-->
					 <!--{/loop}-->

                     <fieldset>
                        <div class="form-group">
                           <div class="col-sm-4 col-sm-offset-2">
						   <input type="hidden" name="dosubmit" value="1">
                              <button type="submit" class="btn btn-primary">保存</button>
                           </div>
                        </div>
                     </fieldset>
                  </form>
               </div>
            </div>
            <!-- END panel-->
         </div>
      </section>

{weiget frontend_weiget/footer}